﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 社团
    /// </summary>
    public class EM_Club
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }
        /// <summary>
        /// 姓名 
        /// </summary>
        [Required]
        [StringLength(11)]
        public string? Examination { get; set; }
        /// <summary>
        /// 性别：男为1，女为2，未知为0
        /// </summary>
        [Required]
        public GenderEnum Gender { get; set; }
        /// <summary>
        /// 班级
        /// </summary>
        [Required]
        [StringLength(25)]
        public string? clubclass { get; set; }
        /// <summary>
        /// 政治面貌
        /// </summary>
        [Required]
        [StringLength(10)]
        public string? Political { get; set; }
        /// <summary>
        /// 兴趣，爱好，特长
        /// </summary>
        [Required]
        [StringLength(80)]
        public string? hobby{ get; set; }
        /// <summary> 
        /// 曾担任的职位
        /// </summary>
        [Required]
        [StringLength(100)]
        public string? position{ get; set; }
        /// <summary>
        /// 曾获得的荣誉
        /// </summary>
        [Required]
        [StringLength(120)]
        public string? honor { get; set; }
        /// <summary>
        /// 入职原因
        /// </summary>
        [Required]
        [StringLength(120)]
        public string? reason { get; set; }
        /// <summary>
        /// 班主任意见
        /// </summary>
        [Required]
        [StringLength(100)]
        public string? opinion { get; set; }
        /// <summary>
        /// 班主任签名
        /// </summary>
        [Required]
        [StringLength(16)]
        public string? signature { get; set; }
        /// <summary>
        ///填写日期
        /// </summary>
        [Required]
        public DateTime date { get; set; }

    }
    public enum Gender
    {
        男 = 1,
        女 = 2,
        未知 = 0
    }
}
